#include <iostream>
#include <unistd.h>
#include <signal.h>
using namespace std;
int main()
{
    signal(2, SIG_DFL);
    while (true)
    {
        cout << "hello signal" << endl;
        sleep(1);
    }
}